<?php

class Catalogue_Model_Attribute_Enum_Storage_Table extends Catalogue_Model_Attribute_Storage_Table {

	protected $_objectClass = 'Catalogue_Model_Attribute_Enum';

	function save(Workset_Model_Object_Interface $object, $data = null) {
		if (empty($object['enum_value'])) {
			$object['enum_value'] = 1;
		}
		if (null !== $data && isset($data['enum_value'])) {
			unset($data['enum_value']);
		}
		return parent::save($object, $data);
	}

}

?>